package cn.e2win.biz.cygs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.e2win.base.controller.MyException;
import cn.e2win.base.json.vo.Pager;
import cn.e2win.biz.base.BaseDAO;
import cn.e2win.biz.base.BaseService;
import cn.e2win.biz.base.CommonService;
import cn.e2win.biz.dbo.CygsEmp;
import cn.e2win.biz.dbo.CygsOrg;
import cn.e2win.biz.dbo.CyzjEmp;
import cn.e2win.biz.dbo.CyzjOrg;
import cn.e2win.biz.dbo.Project;


@Service
public class CygsService extends BaseService{
	

	@Autowired
	private CygsDao cygsDao;
	@Autowired
	private CommonService commonService;
	
	@Override
	public BaseDAO initDao() {
		return cygsDao;
	}

	
	public void pagerCygs(Pager pager){
		cygsDao.pagerCygs(pager);
	}


	@Transactional
	public CygsOrg editCygs(CygsOrg obj) throws MyException {
		CygsOrg cygsOrg = (CygsOrg)super.edit(obj);
		return cygsOrg;
		
		
	}

	

	
	public void pagerCygsEmp(Pager pager){
		cygsDao.pagerCygsEmp(pager);
	}


	@Transactional
	public CygsEmp editCygsEmp(CygsEmp obj) throws MyException {
		CygsEmp cygsEmp = (CygsEmp)super.edit(obj);
		return cygsEmp;
		
		
	}

	
	

	
	public void pagerProject(Pager pager){
		cygsDao.pagerProject(pager);
	}


	@Transactional
	public Project editProject(Project obj) throws MyException {
		Project project = (Project)super.edit(obj);
		return project;
		
		
	}

}

